function classDec(){
    return target=>{
        console.log('class',target)
    }
}
 
function methodDec(m){
    return (target,name)=>{
        console.log('method',target,name,m);
    }
}

@classDec()
class DecClass{
   @methodDec('m')
   foo(){

   }
}



 const c = new DecClass();